<?php
$this->breadcrumbs = array(
    'User' => array('index'),
    ' - View '.$model->profile->billing_company.' Company',
);
?>

<div class="box">
    <header>
        <div class="icons"><i class="icon-user"></i></div>
        <h5>View User #<?php echo "{$model->user_id}" ?></h5>
    </header>
    <div class="body">
        <div class="row-fluid">
        <div class="span6">
        <?php
        $this->widget('bootstrap.widgets.TbDetailView', array(
            'data' => $model,
            'attributes' => array(
                array(
                    'name' => 'user_avatar',
                    'type' => 'raw',
                    'value' => CHtml::image($model->getAvatarUrl('thumb'))
                ),
                'user_id',
                'user_nicename',
                'user_email',
                array(
                    'name' => 'user_status',
                    'value' => $model->getStatusText()
                ),
                array(
                    'name' => 'user_registered',
                    'value' => date('Y-m-d', $model->user_registered)
                ),
                'user_firstname',
                'user_lastname',

            ),
        ));
        ?>
        </div>
        <div class="span6">
        <?php  $this->widget('bootstrap.widgets.TbDetailView', array(
            'data' => $model,
            'attributes' => array(
                array(
                    'name' => 'billing_firstname',
                    'value' => $model->profile->billing_firstname
                ),
                array(
                    'name' => 'billing_lastname',
                    'value' => $model->profile->billing_lastname
                ),
                array(
                    'name' => 'billing_cardtype',
                    'value' => $model->profile->billing_cardtype
                ),
                array(
                    'name' => 'billing_cardnumber',
                    'value' => $model->profile->getEncrypted()
                ),
                array(
                    'name' => 'billing_cardmonth',
                    'value' => $model->profile->billing_cardmonth
                ),
                array(
                    'name' => 'billing_cardyear',
                    'value' => $model->profile->billing_cardyear
                ),
                array(
                    'name' => 'billing_email',
                    'value' => $model->profile->billing_email
                ),
                array(
                    'name' => 'billing_phone1',
                    'value' => $model->profile->billing_phone1
                ),
                array(
                    'name' => 'billing_phone2',
                    'value' => $model->profile->billing_phone2
                ),
                array(
                    'name' => 'billing_street',
                    'value' => $model->profile->billing_street.' '.$model->profile->billing_district
                ),
                array(
                    'name' => 'billing_city',
                    'value' => $model->profile->billing_city
                ),
                array(
                    'name' => 'billing_state',
                    'value' => $model->profile->billing_state
                ),
                array(
                    'name' => 'billing_zipcode',
                    'value' => $model->profile->billing_zipcode
                ),
                )
            ));
                ?>
        </div>
        </div>
    </div>
</div>
